package com.zhaoyh.framework.code.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 日志工具类
 * 
 * @author cmore
 */
public class LogUtil {

	// 通过Thread.currentThread().getClass()，能获取到当前正在调用该属性的类
	public static Logger log = LoggerFactory.getLogger(Thread.currentThread().getClass());

	public static void printRuntime() {
		Runtime runtime = Runtime.getRuntime();
		log.info("MAX[" + runtime.maxMemory() + "]  TOTAL[" + runtime.totalMemory() + "]  FREE[" + runtime.freeMemory()
				+ "]");
	}

	public static void log() {
		
	}
}
